pp108 : sortByColumn Method

sortByColumn Method


This method sorts the cells of a column in the grid in an ascending or descending order.

Syntax


tableID.sortByColumn(nIndex , bAsc)

Parameters

Parameter

Description

nIndex

Required. Integer that specifies the index of the column to be sorted.

bAsc

Optional. Boolean that specifies the order of sorting.

  • true - (Default) Sorting will be in ascending order.
  • false - Sorting will be in descending order.


Return Value


No return value.

Remarks


The default value forbAscis true and the sorting will be done in ascending order for the first time. For successive calls, column sorting toggles between ascending and descending orders.

See Also


grid